// 导入通用的与服务器端交互的request.js文件
import service from '@/utils/request'
// 登录API
export const login = (data) => {
  return service({
    url: '/user/login',
    method: 'POST',
    data: data,
  })
}
// 注销API
export const logout = () => {
  return service({
    url: '/user/logout',
    method: 'GET',
  })
}

export const register = () => {
  return service({
    url: '/user/register',
    method: 'POST',
  })
}
